package io.qifan.desktop.api.auth;


import feign.RequestInterceptor;
import feign.RequestTemplate;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class FeignTokenInterceptor implements RequestInterceptor {
    @Override
    public void apply(RequestTemplate requestTemplate) {
        // 获取到token的名字，值是用户的token
        requestTemplate.header(TokenUtil.tokenName
                , TokenUtil.tokenValue);

    }
}